Skip to main content

Introduction ✔

  1. Intro
    1. 28 March, 2026: 00.28.15 ❌
      • Failed at edge cases
    • Add a new Node class outside LinkedList
      class Node{
      public:
      int val;
      Node* next;
      Node(int val){
      this->val = val;
      this->next = NULL;
      }
      };
    • Define required static variable inside LinkedList class but outside consider.
      int size = 0;
      Node* head;
      Node* tail;
      MyLinkedList() {
      head = tail = NULL;
      size = 0;
      }
  2. Insertion
    1. 28 March, 2026: 00.21.13 ✔
  3. Delete
  4. Length
  5. Search